package com.wang;

import com.wang.entity.Payment;
import com.wang.mapper.PaymentMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @Classname PaymentMainTest8001
 * @Description TODO
 * @Date 2024/2/20 15:10
 * @Created by pc
 */
@SpringBootTest
public class PaymentMainTest8001 {
    @Autowired
    private PaymentMapper paymentMapper;

    @Test
    public void test1(){
        Payment paymentById = paymentMapper.getPaymentById(1L);
        System.out.println(paymentById);
    }

    @Test
    public void test2(){
        Payment payment = new Payment();
        payment.setSerial("李四");

        Integer result = paymentMapper.create(payment);
        System.out.println("插入结果：" + result);
        System.out.println(payment);
    }

    @Test
    public void test3(){
        Payment payment = new Payment();
        payment.setSerial("李四");

        Integer result = paymentMapper.create(payment);
        System.out.println("插入结果：" + result);
        System.out.println(payment);
    }
}

